#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void count(int* arr, int ze)
{
	for (int i = 0; i < ze-1; i++)
	{ 
		int a = 0;
		for (int j = 0; j < ze-1; j++)
		{
			if (arr[j] > arr[j + 1])
			{
				int tmp = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = tmp;
				a = 1;
			}
		}
		if (!a)
		{
			return;
		}
	}
	
}
void print(int* arr, int ze)
{
	for (int i = 0; i < ze; i++)
	{
		printf("%d ", *(arr + i));
	}
}
int main()
{
	int arr[10] = { 0 };
	int* p = arr;
	int ze = sizeof(arr) / sizeof(arr[0]);
	for (int i = 0; i < ze; i++)
	{
		scanf("%d", &arr[i]);
	}
	count(arr, ze);
	print(arr, ze);
	return 0;
}